//
//  UILabel+extension.swift
//  KySwiftPro
//
//  Created by fangyukui on 2017/10/20.
//  Copyright © 2017年 fangyukui. All rights reserved.
//

import UIKit

extension UILabel{
    convenience init(frame:CGRect? = CGRect.zero,
                     title:String,
                     fontSize:CGFloat? = 16.0) {
        self.init(frame: frame ?? CGRect.zero)
        text = title
        numberOfLines = 0
        font = UIFont.systemFont(ofSize: fontSize ?? 16.0)
        sizeToFit()
   }
    
}
